package com.hdax.dm.Controller.list;

import com.hdax.dm.dto.list.sortgoodsDto;
import com.hdax.dm.service.listService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/item")
public class sortgoodsController {

    @Autowired
    private listService listService;

    /**
     * 搜索界面：查询分类接口
     */
    @PostMapping("list/sortgoods")
    public CommonResponse<List<sortgoodsDto>> sortgoods(@RequestBody Map<String,Integer> params){
        return  listService.sortgoods(params);
    }
}
